/*
 * Copyright (c) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

const js2xml_data = 
    '<vertical -display_name="Exercise">\n' +
    '\v<html -url_name="12345"/>\n' +
    '\v<lti_consumer -url_name="12345" -xblock-family="xblock.v1" -accept_grades_past_due="false" -weight="14.0" -has_score="true" -display_name="Exercise" -ask_to_send_username="true" -ask_to_send_email="true" -button_text="Launch Exercise" -custom_parameters="none" -lti_id="id" -launch_target="new_window" -launch_url="url"/>\n' +
    '</vertical>';

const json2xml_data = 
'<ZohoCreator>\n' +
'    <applicationslist>\n' +
'        <application name="testapp">\n' +
'            <formlist>\n' +
'                <form name="Untitled_Form">\n' +
'                    <add>\n' +
'                        <field name="Subform_Single_Line">\n' +
'                            <value>BEUHBALUGU</value>\n' +
'                        </field>\n' +
'                    </add>\n' +
'                </form>\n' +
'                <form name="Untitled_Form">\n' +
'                    <add>\n' +
'                        <field name="Subform_Single_Line">\n' +
'                            <value>IF YOU CAN SEE THIS YOU DESERVE THE SUCC</value>\n' +
'                        </field>\n' +
'                    </add>\n' +
'                </form>\n' +
'            </formlist>\n' +
'        </application>\n' +
'        <application name="derp">\n' +
'            <formlist></formlist>\n' +
'        </application>\n' +
'    </applicationslist>\n' +
'</ZohoCreator>';  

const xml2json_data = {
    "_declaration": {
      "_attributes": {
        "version": "1.0",
        "encoding": "utf-8"
      }
    },
    "dp:ListServicesReply": {
      "_attributes": {
        "ReturnCode": "0",
        "xmlns:dp": "http://www.cisco.com/vtg/diagnosticportal"
      },
      "dp:Schema": {
        "_attributes": {
          "Version": "1.0"
        }
      },
      "dp:ServiceList": {
        "dp:Service": [
          {
            "_attributes": {
              "Name": "Cisco ICM usgd1 LoggerA",
              "Description": "Provides Call Logging services for Instance usgd1",
              "Status": "Running",
              "StartupType": "Auto",
              "LogOnAs": "****"
            }
          },
          {
            "_attributes": {
              "Name": "Cisco ICM Diagnostic Framework",
              "Description": "Provides a web-based diagnostic service for Cisco Unified ICM, Contact Center Enterprise application.",
              "Status": "Running",
              "StartupType": "Auto",
              "LogOnAs": "LocalSystem"
            }
          }
        ]
      }
    }
};

const xml2js_data = {
    "d:multistatus": {
      "_attributes": {
        "xmlns:d": "DAV:"
      },
      "d:response": {
        "d:href": {
          "_text": "/"
        },
        "d:propstat": {
          "d:prop": {
            "d:current-user-principal": {
              "d:href": {
                "_text": "/principals/users/johndoe/"
              }
            }
          },
          "d:status": {
            "_text": "HTTP/1.1 200 OK"
          }
        }
      }
    }
};

let expectData = {}
expectData.js2xml_data = js2xml_data
expectData.json2xml_data = json2xml_data
expectData.xml2json_data = xml2json_data
expectData.xml2js_data = xml2js_data
export default expectData;
